using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Text;

namespace webRequst
{
     public class HttpHelper
     {
          public static string Get(string url)
          {
               string result = "";
               HttpWebRequest req = (HttpWebRequest) WebRequest.Create(url);
               HttpWebResponse resp = (HttpWebResponse) req.GetResponse();
               if (resp.StatusCode == HttpStatusCode.OK)
               {
                    Stream st = resp.GetResponseStream();
                    using (var rd = new StreamReader(st))
                    {
                         result = rd.ReadToEnd();
                    }
               }

               return result;
          }
     }
    
}